<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url" v-if="show" sandbox="allow-forms allow-scripts allow-top-navigation allow-same-origin"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#3A70FF'
					}
				},
				url:'',
				show:false
			}
		},
		methods:{
			getUrl(){
				this.$http.get('/v1/get_kf_info',res => {
					if(res.code ==  200){
						this.url = res.data.link
						this.show = true
					}
				})
			}
		},
		onLoad() {
			this.getUrl()
		}
	}
</script>

<style>

</style>
